package com.cs.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("shop_car")
public class ShopCar {
    @TableId(value = "car_id", type = IdType.AUTO)
    private Long id;

    @TableField("car_user_id")
    private Long userid;//购物车所属用户

    @TableField("car_goods_id")
    private Long goodsId;//购物车商品名

    @TableField("car_goods_price")
    private Double price;//购物车商品价格

    @TableField("car_count")
    private Long count;//商品数量

    @TableField("car_store_id")
    private Long storeId;//商店id
}